package com.settlement.system.service;

import com.settlement.system.common.exception.ServiceException;
import com.settlement.system.model.entity.common.TblWpAuditStaticDtl;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

/**
 * wp-稽核明细 服务类
 *
 * @author xiaochuan
 * @since 2020-11-25
 */

public interface ITblWpAuditStaticDtlService extends IBaseService {

    /**
     * 通过批次号删除数据
     *
     * @param batchNumber
     * @throws ServiceException
     */
    void deleteByTransactionalNo(long batchNumber) throws ServiceException;

    /**
     * 获取合计
     *
     * @param params
     * @return
     * @throws ServiceException
     */
    public TblWpAuditStaticDtl getFoot(Map<String, Object> params) throws ServiceException;

    void updateArchiveResult(Map<String, Object> params) throws ServiceException;

    @Transactional(rollbackFor = Exception.class)
    void saveArchiveResult(Map<String, Object> params, String shopNos) throws ServiceException;
}

